package rkw.database.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;


@Entity(name = "rkw.Election")
public class Election extends core.database.Election<ElectionVoter> {
	private static final long serialVersionUID = -1941174073218256952L;
	
	@OneToMany
	@JoinColumn(name = "election")
	private Set<Vote> votes = new HashSet<Vote>();

	public Set<Vote> getVotes() {
		return votes;
	}

	public void setVotes(Set<Vote> votes) {
		this.votes = votes;
	}
	
}
